import request from '@/utils/request'

// 查询学生党建列表
export function listBuilding(query) {
  return request({
    url: '/building/building/list',
    method: 'get',
    params: query
  })
}

// 查询学生党建详细
export function getBuilding(stuId) {
  return request({
    url: '/building/building/' + stuId,
    method: 'get'
  })
}

// 新增学生党建
export function addBuilding(data) {
  return request({
    url: '/building/building',
    method: 'post',
    data: data
  })
}

// 修改学生党建
export function updateBuilding(data) {
  return request({
    url: '/building/building',
    method: 'put',
    data: data
  })
}

// 删除学生党建
export function delBuilding(stuId) {
  return request({
    url: '/building/building/' + stuId,
    method: 'delete'
  })
}
